<!DOCTYPE html >
<html>
	<head>
		<title>李小程博客</title>
		<meta property="qh.webmaster" content="561c9122d8cbd"/>
		<link rel="stylesheet" type="text/css" href="/css/common_v2.css?v=1.0"/>
		<link rel="stylesheet" type="text/css" href="/css/index_v2.css?v=1.0"/>
		<script type="text/javascript" src="/js/jquery.min.js?v=1.0"></script>
        <script src="/js/jquery.pagination.js"></script>
		<script type="text/javascript" src="/js/common_v2.js?v=1.0"></script>
        <?php w('Common/common_meta'); ?>
        
	</head>

	<body>

		<!--头部-->
		<?php w('Common/common_head'); ?>
		<!--头部-->

		<!--主体-->
		<div id="L_body">

			<!--左边-->
			<div id="L_header_left" >
								

				<div class="pageNav"></div>

				<div class="post_main">
					
					<?php if(empty($list)){ ?>
					<div class="posts">数据为空</div>
					<?php }else{foreach($list as $vo){ ?>
					
					<div class="doc-lists">
						<div class="post_stime">
							<span class="j"><?php echo date('d',$vo['add_time']); ?></span><br />
							<span class="t"><?php echo date('m',$vo['add_time']); ?><br /><?php echo date('Y',$vo['add_time']); ?></span><br />
                            <span class="i">ID:<?php echo $vo['id']; ?></span>
						</div>

						<div class="posts">

							<h3><a href="/Pub/read/id/<?php echo $vo['id']; ?>.html" title="<?php echo $vo['post_title']; ?>" ><?php echo $vo['post_title']; ?></a></h3>

							<div class="post_attr">
								分类:<?php
                                    $type_info = $vo['post_type']?(isset($post_type_info[$vo['post_type']])?$post_type_info[$vo['post_type']]:[]):[];
                                    if($type_info){
                                        //二级
                                        if(isset($type_info['fid'])){
                                            echo '<a class="contentTypes" href="/Pub/lists/postType/'.$type_info['fid'].'.html">'.$type_info['fid_name'].'</a> - <a class="contentTypes" href="/Pub/lists/postType/'.$type_info['id'].'.html">'.$type_info['name'].'</a>';
                                        }else{
                                            echo '<a class="contentTypes" href="/Pub/lists/postType/'.$type_info['id'].'.html">'.$type_info['name'].'</a>';
                                        }
                                    }else{
                                        echo '[空]';
                                    }
                                ?>
								阅读:<a href="javascript:void(0);" >(<?php echo $vo['read_num']; ?>)</a>&nbsp;
								时间:<i><?php echo date('Y-m-d H:i',$vo['add_time']); ?></i>&nbsp;
							</div>

							<div class="post_cons">
								<?php echo htmlspecialchars_decode($vo['post_contents']); ?>
								<p class="read-detail"><a href="/Pub/read/id/<?php echo $vo['id']; ?>.html">阅读全文&gt;&gt;&gt;</a></p>
							</div>
						</div>
					</div>
					
					<?php }} ?>
                    
                    <input type="hidden" name="totalData" value="<?php echo $totalData; ?>" />
                    <input type="hidden" name="showData" value="<?php echo $showData; ?>" />
                    <input type="hidden" name="currentPage" value="<?php echo $current_page; ?>" />
                    <input type="hidden" name="jumpUrlBase" value="/Pub/index?page=" />
				</div>

								
			</div>
			<!--左边-->
		</div>
		<!--主体-->

		<!--底部-->
		<?php w('Common/common_footer'); ?>
		<!--底部-->
	</body>
</html>